package com.vincent.sciinfo.mapper;

import com.vincent.sciinfo.pojo.Source;
import com.vincent.sciinfo.pojo.SourceExample;
import com.vincent.sciinfo.pojo.SourceKey;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SourceMapper {
    @Insert("insert into source(source, papername) values (#{filePath},#{fileName})")
    int saveFilePath(@Param("filePath") String filePath, @Param("fileName") String fileName);

    @Select("select* from source where papername = #{paperName}")
    Source selectPaperFile(@Param("paperName") String paperName);
}